package ace.cmp.data.methodname.sql.mybatisplus.core.properties;

import ace.cmp.data.methodname.sql.mybatisplus.core.enums.InjectLevelEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author caspar
 * @date 2023/2/23 17:15 mybatis plus spring data 扩展配置
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MybatisPlugMethodNameToSqlProperties {
  /**
   * 是否开启
   */
  private Boolean enable = true;

  /**
   * 进行自动注入的等级
   */
  private InjectLevelEnum injectLevel = InjectLevelEnum.ALL;

  /**
   * delete 语句是否必须带过滤条件
   */
  private Boolean deleteWhereCheck = true;
}
